// initial state shape: [{ id, quantity }]
import {call, put, delay} from 'vuex-saga'
import axios from 'axios';
import {getactives} from '../../services/hello'
export default {
    namespaced : true,
    state : {
        list: [1, 2, 3, 4]
    },
    getters : { //处理state 类似filter功能

    },
    actions : { //这里处理异步
        *getDate({
            state,
            commit
        }, {payload}) {
            const {data} = yield call(getactives);
            if (data && data.code === 0) {} else {
                alert('没数据')
            }
        },
        test(store, payload) {
            debugger
        }
    },
    mutations : { //这里做修改state处理
        changevalue(state, {payload}) {
            debugger
        }
    }
}
